﻿<Window x:Class="CncConvProg.View.Dialog.LicenseWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
        xmlns:View="clr-namespace:CncConvProg.View;assembly=CncConvProg.View" Title="License Window" 
        Height="250" Width="350" WindowStyle="ToolWindow"
        WindowStartupLocation="CenterScreen">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height=".5*" />
        </Grid.RowDefinitions>
        <StackPanel Grid.Row="0">
            <!--<StackPanel Orientation="Horizontal" Margin="0,0,0,0" Height="35">
                <TextBlock Text="Connessione : " Margin="5" FontSize="18"/>
                <Image Width="30" Height="30" Margin="3" HorizontalAlignment="Left">
                    <Image.Style>
                        <Style>
                            <Style.Triggers>
                                <DataTrigger Binding="{Binding Path=IsConnect}" Value="True">
                                    <Setter Property="Image.Source" Value="pack://application:,,,/CncConvProg.View;component/Images/Gui/ok.png"/>
                                </DataTrigger>

                                <DataTrigger Binding="{Binding Path= IsConnect}" Value="False">
                                    <Setter Property="Image.Source" Value="pack://application:,,,/CncConvProg.View;component/Images/Gui/cancel.png"/>
                                </DataTrigger>
                            </Style.Triggers>
                        </Style>
                    </Image.Style>
                </Image>
                <TextBlock FontWeight="Bold" Height="30" Margin="3" HorizontalAlignment="Left" Foreground="Red">
                        <TextBlock.Style>
                            <Style>
                                <Style.Triggers>
                                    <DataTrigger Binding="{Binding Path=IsConnect}" Value="False">
                                        <Setter Property="TextBlock.Text" Value="Connessione a internet necessaria !"/>
                                    </DataTrigger>

                                </Style.Triggers>
                            </Style>
                        </TextBlock.Style>
                </TextBlock>
            </StackPanel>-->
            <StackPanel Orientation="Horizontal">
                <Image Source="pack://application:,,,/CncConvProg.View;component/Images/Gui/Key.png" Height="60"/>
                <StackPanel >
                    <TextBlock Text="Chiave Registrazione : " FontSize="20"/>
                    <TextBox x:Name="keyTb" MinWidth="150" Margin="10,5,10,5" />
                    <Button Content="Controlla" Click="Button_Click_1" FontSize="20" Background="NavajoWhite" />
                </StackPanel>
            </StackPanel>
        </StackPanel>
        <StackPanel HorizontalAlignment="Right" Grid.Row="2" VerticalAlignment="Bottom">
            <Button Content="Esci" Background="WhiteSmoke" BorderBrush="Beige" BorderThickness="3" Click="Button_Click_Exit" Width="100" Height="50" FontSize="20" />
        </StackPanel>
    </Grid>
</Window>
